package com.jinhongone.pattern.behavior.visitor.staticDispatch;

/**
 * @author jinho
 * @className Execute
 * @description todo 类描述
 * @date 2025/4/17 10:54
 */
public class Execute {

    public void execute(Animal a) {
        System.out.println("animal");
    }

    public void execute(Dog d) {
        System.out.println("dog");
    }

    public void execute(Cat c) {
        System.out.println("cat");
    }
}
